<%@page import="cn.ysnk.clz.entity.menu.AdminSubMenu"%>
<%@page import="cn.ysnk.clz.entity.menu.AdminMenu"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<%
List<AdminMenu> menuList = (List<AdminMenu>)request.getAttribute("menuList");
%>
<body>
	<ul id="main-nav" class="main-nav nav nav-tabs nav-stacked" style="">
	    <%
	    int index = 0;
	    for(AdminMenu menu:menuList){
	    %>
    	<li>
	        <a href="#<%=menu.getStr("id") %>" class="nav-header <%=index>0?"collapsed":""%>" data-toggle="collapse">
	            <i class="glyphicon glyphicon-<%=menu.getStr("icon")%>"></i><%=menu.getStr("name")%>
	            <span class="pull-right glyphicon glyphicon-chevron-toggle"></span>
	        </a>
	        <%
	        if(menu.getSubMenu().size()>0){
	        %>
	        <ul id="<%=menu.getStr("id") %>" class="nav nav-list secondmenu <%=index>0?"collapse":"collapse in" %>" style="<%=index++>0?"height: 0px;":"" %>">
	        	<%
	        	int subIndex = 0;
	        	for(AdminSubMenu subMenu:menu.getSubMenu()){
	        	%>
	        	<li><a href="javascript:jumpTab('<%=subMenu.getStr("name")%>','<%=subMenu.getStr("action")%>')"><i class="glyphicon glyphicon-<%=subMenu.getStr("icon")%>"></i>&nbsp;<%=subMenu.getStr("name")%></a></li>
               <!-- <li><a href="http://static.demo.ruyo.net/Bootstrap_left_menu.html2.html#"><i class="glyphicon glyphicon-user"></i>&nbsp;用户管理</a></li>
               <li><a href="http://static.demo.ruyo.net/Bootstrap_left_menu.html2.html#"><i class="glyphicon glyphicon-th-list"></i>&nbsp;菜单管理</a></li>
               <li><a href="http://static.demo.ruyo.net/Bootstrap_left_menu.html2.html#"><i class="glyphicon glyphicon-asterisk"></i>&nbsp;角色管理</a></li>
               <li><a href="http://static.demo.ruyo.net/Bootstrap_left_menu.html2.html#"><i class="glyphicon glyphicon-edit"></i>&nbsp;修改密码</a></li>
               <li><a href="http://static.demo.ruyo.net/Bootstrap_left_menu.html2.html#"><i class="glyphicon glyphicon-eye-open"></i>&nbsp;日志查看</a></li> -->
               <%
	        	}
               %>
           </ul>
           <%
	        }
           %>
     	</li>
	       <%
	    }
	       %>
	</ul>
</body>
</html>